interface IBestAFSRoute {
  path: string;
  exact?: boolean;
  redirect?: string;
  name?: string;
  component?: string;
  headerRender?: boolean;
  footerRender?: boolean;
  menuRender?: boolean;
  routes?: IBestAFSRoute[];
}

const routes: IBestAFSRoute[] = [
  { path: '/', exact: true, redirect: '/home' },
  { path: '/home', name: '系统首页', component: '@/pages/home/index' },
  {
    path: '/banner',
    name: '轮播图管理',
    routes: [
      {
        path: '/banner/list',
        name: '轮播图列表',
        component: '@/pages/banner/index',
      },
      {
        path: '/banner/add',
        name: '添加轮播图',
        component: '@/pages/banner/Add',
      },
    ],
  },
];

export default routes;
